package com.example;

import android.app.Application;
import android.content.Context;

import com.tencent.smtt.sdk.QbSdk;

/**
 *应用Application
 */
public class WalletApplication extends Application {
    private static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        initRx5();
        mContext = this;
    }

    /**
     * @return
     */
    public static Context getInstance(){
        return mContext;
    }

    /**
     *
     */
    private void initRx5(){

        QbSdk.initX5Environment(this,  new QbSdk.PreInitCallback() {
            @Override
            public void onCoreInitFinished() {

            }


            @Override
            public void onViewInitFinished(boolean isX5) {

            }
        });
    }
}
